#include <boost/program_options.hpp>
#include <iostream>
namespace opt = boost::program_options;

int main(int argc, char** argv)
{
	opt::options_description desc("All options");

	int apples, oranges;
	desc.add_options()
		("apples", opt::value<int>(&apples), "how many apples do you have")
		("oranges", opt::value<int>(&oranges), "how many oranges do you have")
	;

	opt::variables_map vm;
	opt::store(opt::parse_command_line(argc, argv, desc), vm);
	opt::notify(vm);
	std::cout << "Fruits count: " << vm["apples"].as<int>() + vm["oranges"].as<int>() << std::endl;

	return 0;
}



